﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:kinect="clr-namespace:KinectTouchDevice"
    >
    <Style TargetType="{x:Type kinect:KinectMultipointWindow}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type kinect:KinectMultipointWindow}">
                    <Border 
                        Background="{TemplateBinding Background}" 
                        BorderBrush="{TemplateBinding BorderBrush}" 
                        BorderThickness="{TemplateBinding BorderThickness}" >
                        <Grid>
                            <AdornerDecorator>
                                <ContentPresenter
                                    x:Name="contentPresenter"
                                     ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}"
                                     Content="{TemplateBinding ContentControl.Content}" />
                            </AdornerDecorator>
                            <Canvas x:Name="kinectHandsCanvas" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>

